import Taro, { Component } from '@tarojs/taro'
import { Swiper, SwiperItem, Image, View, Text } from '@tarojs/components'
import '../../assets/common.scss'
import CommonJs from '../../utils/common'
import './my.scss'

export default class Index extends Component {
    constructor(props) {
      super(props);
      this.state = {
		bginfo:''
      }
    }
    config = {
      navigationBarTitleText: '大额充值'
    }
    componentWillMount () {
		this.getbg()
    }
    componentDidShow () {
        
    }
    getbg(){
	var dealerId=Taro.getStorageSync('dealerId')
	var url='/advert/papi/v1.9/apply-setting/byType/2/'+dealerId
	var _this=this
  	CommonJs.ajaxRequest(url,'','GET',function(res){
			if(res.data&&res.data.length>0&&res.data[0].logo){
				_this.setState({
				  bginfo:res.data[0].logo
				})
			}
		    else{
				_this.setState({
				  bginfo:'https://xjzbsmall.g2ma.com/kedouimg/kefuewm.jpg'
				})
			}
					 
  	})
  }
    render () {
     
      return (
        <View className='page'>
            <View className='charge-top'>由于微信充值金额限制,金额大于2万时,添加客服微信进行沟通</View>
            <View className='charge-list'>
                    <View className='charge-ul'>充值步骤</View>
                    <View className='charge-li'>1.发送打款账号给微信客服</View>
                    <View className='charge-li'>2.发送打款凭证给微信客服</View>
                    <View className='charge-li'>3.发送需要充值的用户昵称跟创客号给客服</View>
            </View>
           
            <View className='charge-ma'>
            <View className='charge-l'>请添加客服微信,发送内容给客服</View>
            <View className='charge-img'>
                <Image mode="scaleToFill" className='app-ewm'  src={this.state.bginfo}></Image>
            </View>
            </View>
              
        </View>
      )
    }
  }
  
   